package com.example.qx.faxiana;

import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.example.qx.R;
import com.example.qx.adapter.cheduiadapter;
import com.example.qx.lei.item;

import java.util.ArrayList;
import java.util.List;

public class chedui extends AppCompatActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.chedui);
        List<item> itemlist=new ArrayList<>();
        itemlist.add(new item("aa","bb"));
        itemlist.add(new item("cc","dd"));

        RecyclerView recyclerView=findViewById(R.id.recyclerview);
        recyclerView.setLayoutManager(new LinearLayoutManager(this));
        cheduiadapter cheduiadapter=new cheduiadapter(itemlist);
        recyclerView.setAdapter(cheduiadapter);





    }
    }
